// JavaScript Document
// alert(getNameWzExt("c:\\fff\\t.txt"));
function getNameWzExt(fpath)

{
	//fpath=fpath.replace("\\\\","\\/");
 //	alert(fpath);
var idx=	fpath.lastIndexOf("\\");

return fpath.substr(idx+1);
	
}

function getDir(filePath)
{
    var path = require('path');

    var dir=filePath.substring(0,filePath.lastIndexOf(path.sep)+1);
    return dir;
}

try{
    exports.getDir = getDir;


}catch(e)
{

}